export const constantRoute = [
    {
        path: '/',
        component: () => import('@/view/index.vue'),
        name: 'home',
        meta: {
            title: '首页',
            icon: 'HomeFilled',
            affix: true,
        },
    },
    {
        path: '/login',
        component: () => import('@/view/login/index.vue'),
        name: 'login',
        meta: {
            title: '登录',
            icon: 'Login',
            affix: true,
        },
    },
    {
        path: '/new-layout',
        component: () => import('@/view/detail/layout/index.vue'),
        name: 'new-layout',
        meta: {
            title: '首页',
            affix: true,
        },
        children: [
            {
                path: '/detail',
                component: () => import('@/view/detail/index.vue'),
                name: 'detail',
                meta: {
                    title: '博客详情',
                    icon: 'Detail',
                    affix: true,
                },
            },
            {
                path: '/personal',
                component: () => import('@/view/personal/index.vue'),
                name: 'personal',
                meta: {
                    title: '个人中心',
                }
            },
            {
                path: '/editor',
                component: () => import('@/view/editor/index.vue'),
                meta: {
                    title: '博客编辑',
                }
            },
            {
                path: '/message',
                component: () => import('@/view/message/index.vue'),
                meta: {
                    title: '消息中心',
                }
            },
            {
                path: '/collect',
                component: () => import('@/view/collect/index.vue'),
                meta: {
                    title: '我的收藏',
                }
            },
            {
                path: '/history',
                component: () => import('@/view/history/index.vue'),
                meta: {
                    title: '浏览历史',
                }
            }
        ],
    },
    {
        path: '/test',
        component: () => import('@/view/test.vue'),
    },
    {
        path: '/404',
        component: () => import('@/view/404/index.vue'),
        meta: {
            title: '页面未找到',
            hidden: true
        }
    },
    {
        path: '/:pathMatch(.*)*',
        redirect: '/404', //任意路由
        meta: {
            title: '任意路由',
            hidden: true
        }
    },
]
